//
//  YCOrderModel.h
//  YCVillageDoctor
//
//  Created by zhangxiaoliang on 2017/7/27.
//  Copyright © 2017年 zhangxiaoliang. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_OPTIONS(NSUInteger, YCOrderSJType)
{
    YCOrderSJType_OnlineConsultant=1,//在线咨询
    YCOrderSJType_RemoteConsultant=1<<1,//远程会诊
    YCOrderSJType_ConventionalECGReading=1<<2,//常规心电阅片
    YCOrderSJType_DynamicECGReading=1<<3,//动态心电阅片
    YCOrderSJType_Prescription=1<<4,//处方
    YCOrderSJType_BuyRemoteConsultant=1<<5,//购买远程会诊服务
    YCOrderSJType_BuyMutualFund=1<<6,//购买互助资金
};
typedef NS_ENUM(NSUInteger,YCOrderStatus)
{
    YCOrderStatus_DidPay=0,//已付款
    YCOrderStatus_WaitPay,//待付款
    YCOrderStatus_Cancel,  //已废弃
    YCOrderStatus_Success,  //消费成功
};

typedef NS_ENUM(NSUInteger,YCPushType)
{
    YCPUSHTYPE_PAY=0,//去支付
    YCPUSHTYPE_CHECK,//待核销
};

typedef NS_ENUM(NSUInteger, YCOrderStatusParams) {
    ORDERSTATUS_ZERO = 0,
    ORDERSTATUS_ONE,
    ORDERSTATUS_TWO,
    ORDERSTATUS_NULL //@"" 等于 3
};

typedef NS_ENUM(NSUInteger, YCO2OFlagParams) {
    O2OFLAG_ZERO = 0,
    O2OFLAG_ONE,
    O2OFLAG_TWO,
    O2OFLAG_NULL //@"" 等于 3
};
@interface YCOrderModel : NSObject
/**服务类型*/
@property (nonatomic,assign)YCOrderSJType YCServerType;
/**订单的状态*/
@property(nonatomic,assign)YCOrderStatus YCOrderStatus;

@property (nonatomic,strong)NSString *createDate;
@property (nonatomic,strong)NSString *hzId;
@property (nonatomic,strong)NSString *memberName;
@property (nonatomic,strong)NSString *predoutFlag;
@property (nonatomic,strong)NSString *orderId;
@property (nonatomic) CGFloat orderMoney;
@property (nonatomic,strong)NSString *orderName;
@property (nonatomic,strong)NSString *orderStatus;
@property (nonatomic,strong)NSString *servePic;
@property (nonatomic,strong)NSString *sjName;
@property (nonatomic,strong)NSString *sjType;


//获取订单列表数据
-(void)sendPushMessageListRequest:(NSInteger)page OrderStatus:(YCOrderStatusParams)orderStatus O2OFlag:(YCO2OFlagParams)o2oFlag Success:(void(^)(id))success Failure:(void(^)(id))failure;

//跳转到详情页面，如需网路请求的，可在此方法中添加相应的网络请求
-(void) DetailWithOrdelModel: (YCOrderModel *) orderModel WithViewController: (UIViewController *)superController;

//初始化模型数据
-(void)config;

@end
